<?php

function insertFeed($content){
    if (is_feed()){
        global $id;
        $comNum = get_comments_number($id); //以上两行是为了取得文章的评论数量
        $insert = "<hr /><P><small>本文地址: <a href='".get_permalink()."'>".get_permalink()."</a> | <a href='".get_permalink()."#comments'>".$comNum."条评论</a></small></P>";    
        $content = $content.$insert;
    }
    return $content;
}
add_filter('the_content', 'insertFeed');

?>